import request from '@/utils/request'

// 查询转盘奖品列表
export function listTurntable(query) {
  return request({
    url: '/ds/turntable/list',
    method: 'get',
    params: query
  })
}

// 查询转盘奖品详细
export function getTurntable(id) {
  return request({
    url: '/ds/turntable/' + id,
    method: 'get'
  })
}

// 新增转盘奖品
export function addTurntable(data) {
  return request({
    url: '/ds/turntable',
    method: 'post',
    data: data
  })
}

// 修改转盘奖品
export function updateTurntable(data) {
  return request({
    url: '/ds/turntable',
    method: 'put',
    data: data
  })
}

// 删除转盘奖品
export function delTurntable(id) {
  return request({
    url: '/ds/turntable/' + id,
    method: 'delete'
  })
}
